package com.ssy.lingxi.platform.manage.entity.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 标签实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/18
 */
@Data
@Entity
@Table(schema = "public", name = "man_content_label")
public class ContentLabel implements Serializable {
    private static final long serialVersionUID = 4539226248952190856L;

    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_label_seq")
    @SequenceGenerator(sequenceName = "man_content_label_seq", name = "content_label_seq", allocationSize = 1)
    private Long id;

    /**
     * 标签名称
     */
    @Column(columnDefinition = "varchar(20)")
    private String name;

    /**
     * 标签说明
     */
    @Column(columnDefinition = "varchar(80)")
    private String explain;

    /**
     * 状态 0-无效 1-有效
     */
    private Integer status = 1;

    /**
     * 创建时间
     */
    private Long createTime = System.currentTimeMillis();
}
